@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600&family=Suez+One&display=swap');

*{
    margin: 0;
    padding: 0;
}

img{
    width: 100%;
}

body{
    background: #BDF5FE;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

a{
    text-decoration: none;
    color: #3d3d3d;
    transition: color 500ms ease;
}

a:hover{
    color: #8C8C8C;
}

header.container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.container{
    width: 80%;
    margin: 0 auto;
}

header .logo a {
    position: relative;
    top: -10px;
    left: -10px;
    color: #000000;
    font-weight: 600;
    font-size: 25px;
    font-family: 'Diplomata SC', serif;
}

header .logo:hover{
    color: #8C8C8C;
    cursor: pointer;
}

header nav a {
    margin-left: 15px;
    color: #000000;
    font-weight: 300;
}

footer{
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: center;
    width: 100%;
    float: left;
}

#img_index{
    display:block;
    margin:auto;
    width: 100%;
    text-align: center;
    padding-top: 75px;
    padding-bottom: 75px;

}

.history_index{
    text-align: center;
    white-space: pre-line;
}

#history{
    padding-top: 100px;
    padding-bottom: 75px;
}

.hr_index{
    color : black;
    border : 1px solid #000000;
}

.div_orders{
    display: flex;
    float: left;
    flex-wrap: wrap;
    justify-content: space-between;
}

.div_orders > div{
    margin-top: 50px;
    width: 30%;
    margin-bottom: 30px;
    padding: 30px;
    box-sizing: border-box;
}

.div_orders > div h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}
.div_orders > div h4 {
    margin-top: 7px;
    margin-bottom: 10px;
}
.div_orders>img{
    max-height: 60%;
    min-height: 40%;
}

.full_order{
    text-align: center;
    white-space: pre-line;
}

#full_order_img{
    border-radius: 10px;
    margin:0 25% 0 25%;
    width:50%;
    box-shadow: 0 0 10px #444;
}

#div_index{
    padding-top: 30px;
    margin:0 20% 0 20%;
    width:60%
}
#h1_div{
    padding-top: 75px;
    text-align: center;
}
#full_articles_div{
    margin:0 10% 0 10%;
    width:80%;
    text-align: center;
    white-space: pre-line;
}

form > button{
    margin: 20px;
    padding: 10px 10px;
    border: 1px solid black;
    border-radius: 30px;
    background-color: #BDF5FE;
    display: block;
}
form > button:hover{
    background-color: #BDF5FE;
    box-shadow: 0 0 10px #444;
}
form > input{
    display: block;
    margin: 15px;
    border: 1px solid black;
    border-radius: 30px;
    padding: 15px 15px;
    width: 300px;
}

form > textarea{
    display: block;
    margin: 15px;
    border: 1px solid black;
    border-radius: 5px;
    width: 500px;
    height: 100px;
    padding: 5px;
}
form > h4{
    text-align: center;
}

#form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.img{
    border-radius: 10px;
    border: 0px #ccc solid;
    box-shadow: 0 0 10px #444;
}

#img_news{
    margin-bottom: 5px;
    margin-top: 10px;
}

#div_orders{
    border-radius: 10px;
    border: 0px solid;
    box-shadow: 0 0 10px #444;
}

#img_order{
    border-radius: 10px;
}

#img_order:hover{
    box-shadow: 0 0 15px #444;
}

#div_orders_admin{
    border-radius: 10px;
    border: 0px solid;
    box-shadow: 0 0 10px #444;
}

#img_order_admin{
    border-radius: 10px;
}

#img_order_admin:hover{
    box-shadow: 0 0 15px #444;
}

.edit-btn {
    display: inline-block;
}
#edit-btn-center{
    display:flex;
    justify-content: center;
}
#hr{
    margin-top: 50px;
    margin-bottom: 50px;
}

#img{
    border-radius: 10px;
    border: 0px solid;
    box-shadow: 0 0 10px #444;
}

#report{
    border-radius: 10px;
    border: 1px solid;
    box-shadow: 0 0 10px #444;
    padding: 10px 35px;
    margin: 15px;
}
#option{
    border-radius: 30px;
    box-shadow: 0 0 10px #444;
    padding: 15px 15px;
    margin: 15px;
}

#but_exit{
    all: initial;
    all: unset;
    margin-left: 15px;
    color: #000000;
    font-weight: 300;
    cursor:pointer;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size:20px;
}

#but_exit:hover{
    color: #000000;
}

.div_basket{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.div_basket > div{
    margin-top: 50px;
    width: 50%;
    margin-bottom: 30px;
    padding: 30px;
    box-sizing: border-box;
}

.div_basket > div h3 {
    margin-top: 10px;
    margin-bottom: 5px;
}
.div_basket > div h4 {
    margin-top: 7px;
    margin-bottom: 10px;
}


.dropbtn {
    background-color: #BDF5FE;
    padding: 16px;
    font-size: 25px;
    border: none;
    border-radius: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;

}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size:20px;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {display: block;}

.dropdown:hover .dropbtn {background-color: #bbe7fa;}

.basket{
    text-align: center;
}
.decoration{
    border-radius: 30px;
    box-shadow: 0 0 10px #444;
    padding-top: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 40%;
    margin:0 auto;
}

.info_orders{
    text-align: center;
}

.info_orders > a{
    font-size:20px;
}

#monthly-report{
    border-radius: 20px;
    border: 1px solid;
    box-shadow: 0 0 10px #444;
    padding: 10px 35px;
    margin-bottom: 35px;
    text-align: center;
}

#monthly-report > h1,h2,h3{
    margin-bottom: 10px;
}

.buy_btn > button{
    border: none;
    margin: 0px;
    padding: 5px 10px;
    font-size: 30px;
}

.fixed-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.fixed-button {
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {background-color: #BDF5FE;}
    50% {background-color: #7eeeff;}
    100% {background-color: #BDF5FE;}
}

input[type="checkbox"] {
    transform: scale(1.5);
    margin: 15px;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-container > input{
    width: 70%;
    margin-left: 10%;
    margin-right: -3%;
}
.search-container > button{
    width: 10%;
    margin-right: 10%;
    margin-left: -3%;
    height: 47px;
}

.centered-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-alert {
    background-color: #BDF5FE;
    padding: 15px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
    border: 0px solid;
    box-shadow: 0 0 10px #444;
}

.custom-alert.hidden {
    opacity: 0;
}

.title{
    font-family: 'Diplomata SC', serif;
}
#img_logo{
    width: 35px;
}

#calendar_btn{
    display: flex;
    justify-content: space-between;
}

#but_add_calendar > button{
    font-size: 50px;
    width: 100px;
}
#but_add_calendar {
    display: flex;
    justify-content: center;
}

.carousel-container {
    padding: 80px 80px;
    overflow: hidden;
    position: relative;
}

.card_div {
    display: flex;
    transition: transform 0.3s ease;
}

.cards-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    transform: translateX(-5%);
    width: fit-content;
}

.card {
    height: 380px;
    width: 300px;
    background-color: #BDF5FE;
    border-radius: 10px;
    box-shadow: -1rem 0 3rem #000;
    transition: transform 0.4s ease-out;
    position: relative;
    padding: 10px;
}

.carousel-container .prev,
.carousel-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1;
}

.carousel-container .prev {
    left: 0;
}

.carousel-container .next {
    right: 0;
}

.card > img {
    border-radius: 10px;
    margin-bottom: 20px;
    max-height: 60%;

}
.card:not(:first-child) {
    margin-left: -50px;
    transition: 0.8s ease-out;
}

.card:hover {
    transform: translateY(-20px);
    transition: 0.8s ease-out;
}

.card:hover ~ .card {
    position: relative;
    left: 50px;
    transition: 0.8s ease-out;
}

.bar {
    position: absolute;
    bottom: 10px;
    left: 10px;
    height: 5px;
    width: 290px;
}

.emptybar {
    background-color: #2e3033;
    width: 100%;
    height: 100%;
}

.filledbar {
    position: absolute;
    top: 0px;
    z-index: 3;
    width: 0px;
    height: 100%;
    background: rgb(0, 154, 217);
    background: linear-gradient(90deg, rgba(0, 154, 217, 1) 0%, rgba(217, 147, 0, 1) 65%, rgba(255, 186, 0, 1) 100%);
    transition: 0.6s ease-out;
}

.card:hover .filledbar {
    width: 290px;
    transition: 0.4s ease-out;
}

.scroll-block {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-block.visible {
    opacity: 1;
    transform: translateY(0);
}


@media only screen and (max-width: 600px) {
    .logo{margin-top: 20px}
    form > button,
    form > input{
        padding: 15px;
        font-size: 18px;
        margin: 10px 0;
        color: black;
    }
    form > input[type = "date"],
    form > input[type = "time"]{
        color: black;
        background-color: white;
    }
    form > textarea{
        padding: 15px;
        width: 300px;
        margin: 10px 0;
    }
    /* Пример для кнопок */
    .buy_btn > button {font-size: 18px;}
    h1{font-size: 18px;}
    h2{font-size: 16px;}
    h3{font-size: 14px;}
    h4{font-size: 12px;}
    h5{font-size: 10px}
    h6{font-size: 8px;}

    #myButton{
        font-size: 12px;
    }

    .dropdown-content {
        left: -70px;
        font-size: 12px;
    }
    .dropdown-content  a{
        font-size: 16px;
    }
    .div_orders > div{
        margin-top: 20px;
        width: 47%;
        margin-bottom: 20px;
        padding: 10px;
        box-sizing: border-box;
    }
    #div_orders > h3{font-size: 12px;}
    .search-container > button{
        width: 30%;
        height: 50px;
        margin-right: -5%;
        margin-left: -6%;
        text-align: center;
        display: inline-flex;
        align-items: center;
    }
    .search-container > input{
        font-size: 14px;
        margin-right: -6%;
        margin-left: -5%;
        width: 82%;
    }
    .div_basket > div{
        margin-top: 20px;
        width: 80%;
        margin-bottom: 20px;
        padding: 10px;
    }
    .div_basket > div > form > button,
    .decoration > div > form > button{
        font-size: 12px;
    }
    .decoration{
        width: 90%;
        margin:0 auto;
    }
    #but_exit{font-size: 16px;}
    .dropbtn{color: black;}
    .card {
        height: 280px;
        width: 200px;

    }
    .card>img{
        max-height: 60%;
    }
    .bar {
        width: 200px;
    }
    .card:hover .filledbar {
        width: 200px;
    }
    .option{
        padding: 2px 3px;
        font-size: 10px;
    }
}